package com.wangsh.projDemo.web.back.config;

import javax.annotation.Resource;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

import com.wangsh.projDemo.config.SpringMVCConfig;

/**
 * Spring Web项目相关模块的配置
 * 
 * @author TeaBig
 */
@Configuration
public class BackMVCConfig extends SpringMVCConfig
{
	@Resource
	private HandlerInterceptor authInterceptor;

	@Override
	public void addInterceptors(InterceptorRegistry registry)
	{
		registry.addInterceptor(authInterceptor).addPathPatterns("/back/**");
	}
}
